//
//  KLMyCell.m
//  used
//
//  Created by xalo on 16/7/28.
//  Copyright © 2016年 王凯. All rights reserved.
//

#import "KLMyCell.h"


@interface KLMyCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nname;
@property (weak, nonatomic) IBOutlet UILabel *desc;
@property (weak, nonatomic) IBOutlet UILabel *price;
@property (weak, nonatomic) IBOutlet UILabel *province;
@property (weak, nonatomic) IBOutlet UILabel *city;

@end


@implementation KLMyCell

- (void)setModel:(KLGood *)model {
    _model = model;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.userimge] placeholderImage:[UIImage imageNamed:@"placehold_icon"]];
    self.nname.text = model.sallername;
    self.desc.text = model.desc;
    self.price.text = model.saleprice.description;
    self.province.text = model.province;
    self.city.text = model.city;
}

@end
